package com.oig.sys.workflow.dao;

import com.oig.sys.workflow.entity.TbDataModule;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

/**
 * @author wuxl
 */
public interface ITbDataModuleDao extends JpaRepository<TbDataModule, Integer>, JpaSpecificationExecutor<TbDataModule> {

	@Query("from TbDataModule d where d.id=:id")
	TbDataModule getDMById(@Param("id") Integer id);

	TbDataModule getByTableName(String tableName);

}
